package com.nq.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nq.pojo.UserPosition;
import com.nq.pojo.UserPositionDetail;
import com.nq.pojo.vo.StFundDetailsVo;
import com.nq.pojo.vo.StPositionDetailsVo;
import com.nq.vo.position.UserPositionDetailVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserPositionDetailMapper extends BaseMapper<UserPositionDetail> {
  int insertSelective(UserPositionDetail userPositionDetail);

  List<UserPositionDetailVo> listPositionDetail(@Param("userId") Integer userId);

  Integer listSellByPositionId(@Param("positionId") Integer positionId);

  List<StPositionDetailsVo> queryPositionDetails(@Param("phone") String phone, @Param("userId") Integer userId,
                                                 @Param("positionNo") String positionNo,
                                                 @Param("beginAmount") String beginAmount,@Param("endAmount") String endAmount);

  List<StFundDetailsVo> queryFundApplyDetails(@Param("phone") String phone, @Param("userId") Integer userId,@Param("orderNumber") String orderNumber,
                                              @Param("beginAmount") String beginAmount,@Param("endAmount") String endAmount);

  List<UserPositionDetail> queryListByPositionId(@Param("positionId") Integer positionId, @Param("oldDetailId") Integer oldDetailId);
}
